package service;

import dao.AskDocDao;
import model.Doctor;
import model.QandA;
import model.User;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: TM
 * Date: 11/17/12
 * Time: 12:23 PM
 * To change this template use FileModel | Settings | FileModel Templates.
 */
public class AskDoctorServiceImpl implements  AskDoctorService{

     private AskDocDao askDocDao;
     public List<Doctor> getDoctorList(final User user){
           return askDocDao.getDoctorList(user);
     }

    public int saveQuestion(User user, QandA qanda) {
        return askDocDao.saveQuestion(user, qanda);
    }

    public List<QandA> getQandA(final User user){
        return  askDocDao.getQandA(user);
    }

    public List<QandA> getAnsweredQues(User user) {
        return askDocDao.getAnsweredQues(user);
    }

    public AskDocDao getAskDocDao() {
        return askDocDao;
    }

    public void setAskDocDao(AskDocDao askDocDao) {
        this.askDocDao = askDocDao;
    }
}
